/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.oracleandsxnd.erp.member.entity;

import com.oracleandsxnd.erp.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

import java.util.Date;


/**
 * 会员充值Entity
 * @author 会员充值
 * @version 2019-12-14
 */
public class MemberMoneyGive extends DataEntity<MemberMoneyGive> {
	
	private static final long serialVersionUID = 1L;
	private String membername;		// 会员名称
	private double money;		// 积分
	private String type;		// 1赠送2扣减
	private String memberid;		// 会员id
	private Date beginCreateDate;		// 开始 创建时间
	private Date endCreateDate;		// 结束 创建时间
	
	public MemberMoneyGive() {
		super();
	}

	public MemberMoneyGive(String id){
		super(id);
	}

	@Length(min=0, max=100, message="会员名称长度必须介于 0 和 100 之间")
	public String getMembername() {
		return membername;
	}

	public void setMembername(String membername) {
		this.membername = membername;
	}
	
	public double getMoney() {
		return money;
	}

	public void setMoney(double money) {
		this.money = money;
	}
	
	@Length(min=0, max=11, message="1赠送2扣减长度必须介于 0 和 11 之间")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@Length(min=0, max=32, message="会员id长度必须介于 0 和 32 之间")
	public String getMemberid() {
		return memberid;
	}

	public void setMemberid(String memberid) {
		this.memberid = memberid;
	}
	
	public Date getBeginCreateDate() {
		return beginCreateDate;
	}

	public void setBeginCreateDate(Date beginCreateDate) {
		this.beginCreateDate = beginCreateDate;
	}
	
	public Date getEndCreateDate() {
		return endCreateDate;
	}

	public void setEndCreateDate(Date endCreateDate) {
		this.endCreateDate = endCreateDate;
	}
		
}